const Layout = () => import("@/layout/index.vue");

export default {
  path: "/content",
  name: "Content",
  component: Layout,
  redirect: "/content/article/index",
  meta: {
    icon: "ri:file-text-line",
    title: "内容管理",
    rank: 15
  },
  children: [
    {
      path: "/content/article/index",
      name: "ContentArticle",
      component: () => import("@/views/system/article/index.vue"),
      meta: {
        title: "文章管理",
        roles: ["admin"]
      }
    },
    {
      path: "/content/category/index",
      name: "ContentCategory",
      component: () => import("@/views/system/category/index.vue"),
      meta: {
        title: "分类管理",
        roles: ["admin"]
      }
    },
    {
      path: "/content/comment/index",
      name: "ContentComment",
      component: () => import("@/views/system/comment/index.vue"),
      meta: {
        title: "评论管理",
        roles: ["admin"]
      }
    },
    {
      path: "/content/tag/index",
      name: "ContentTag",
      component: () => import("@/views/system/tag/index.vue"),
      meta: {
        title: "标签管理",
        roles: ["admin"]
      }
    },
    {
      path: "/content/sensitive-word/index",
      name: "ContentSensitiveWord",
      component: () => import("@/views/system/sensitive-word/index.vue"),
      meta: {
        title: "敏感词管理",
        roles: ["admin"]
      }
    }
  ]
} satisfies RouteConfigsTable;
